[reland][c10d] Log API usage of monitored barrier
Reland of https://github.com/pytorch/pytorch/pull/55197, which fails windows test that was only run on master.
Differential Revision: [D27758425](https://our.internmc.facebook.com/intern/diff/D27758425/)
[ghstack-poisoned]