[rpc] fix backward compatibility test (#35703)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/35703
Test Plan: Imported from OSS
Differential Revision: D20746388
Pulled By: wanchaol
fbshipit-source-id: 4a336fd4a05a606c5b209e5e62c35c70d35614d4