Fix const-cast lint error in process_group_agent.cpp (#37184)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37184
Test Plan: Imported from OSS
Differential Revision: D21213292
Pulled By: mrshenli
fbshipit-source-id: 1fb5447bc0033242e97cc2ec8c52b24e0cf61e8a