compareSet method for HashStore and FileStore (#53803)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/53062
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53803
Reviewed By: ngimel
Differential Revision: D27017014
Pulled By: H-Huang
fbshipit-source-id: 736aa5ad848f5708e6581e472e48d5682bef7131