Add some TORCH_API annotations to RPC
Summary: They will be needed when RPC gets merged into libtorch
Test Plan: CI later in the stack
Reviewed By: mrshenli
Differential Revision: D29132956
fbshipit-source-id: 8637640d56a1744a5dca5eb7d4b8ad0860c6b67c