[PyTorch] Fix unnecessary shared_ptr copies in RRefType (#66706)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66706
Missing moves in the construction path.
ghstack-source-id: 140746585
Test Plan: CI
Reviewed By: suo
Differential Revision: D31694356
fbshipit-source-id: 8e2bf2dd41f3f65fc06e30ffd5fddd487d01aaa8