Acquire GIL before creating py::object in RPC python handler
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26988
Test Plan: Imported from OSS
Differential Revision: D17635297
Pulled By: mrshenli
fbshipit-source-id: 43c93e44fe0dceba9a41a292c53a665c612843e9