[PyTorch] Add unit test for c10::Synchronized<T> (#74062)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74062
Since this class was added, it's missing a unit test. dbort first noticed it, so adding one in this commit.
ghstack-source-id: 151122696
Test Plan: `buck test //xplat/caffe2/c10:c10_test`
Reviewed By: dbort
Differential Revision: D34800969
fbshipit-source-id: e665ab0df2faf505536bf27bdf29fcd3e70fe699
(cherry picked from commit e060756d2772dbcbe59a6422de786e338807afa6)