[reland][c10d] Log API usage of monitored barrier (#55989)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55989
Reland of https://github.com/pytorch/pytorch/pull/55197, which fails windows test that was only run on master.
ghstack-source-id: 126477554
Test Plan: CI
Reviewed By: zhaojuanmao
Differential Revision: D27758425
fbshipit-source-id: ebca8b6baf0019879bc4b16639d6cccf27dc6b1c