Add testing workaround for EFA and TensorPipe (#77363)
This is a workaround for EFA for TensorPipe.
This allows RPC enabled tests to be ran on AWS clusters.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77363
Approved by: https://github.com/wanchaol