[TensorPipe] Fix lock inversion upon response read error handling (#38929)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38929
Fixes a TSAN error that was reported by the internal tests.
Test Plan: None... :(
Differential Revision: D21703022
fbshipit-source-id: 54480d32d8c19db01d9608a52b7b906a622ca8b2