Skip distributed tests if built with USE_DISTRIBUTED=0 (#70677)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/70676
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70677
Reviewed By: albanD
Differential Revision: D33439808
Pulled By: janeyx99
fbshipit-source-id: 7f9971eb564dbbb6625fe5f78328c3abe3808719