[PyTorch Mobile] Fix for messenger: avoid error with [-Werror,-Wglobal-constructors]
Summary:
Messenger build may set [-Werror,-Wglobal-constructors], which triggers the compilation error `declaration requires a global destructor`. See https://fb.workplace.com/groups/2148543255442743/permalink/2531994563764275/ for details.
Solution: https://stackoverflow.com/questions/15708411/how-to-deal-with-global-constructor-warning-in-clang
Test Plan:
CI
based on D24842445, `buck test //xplat/messenger/ml/ranking_service:MessengerRankingServiceApple`
Reviewed By: abiczo
Differential Revision: D24862372
fbshipit-source-id: d07548645d5af480c4e53e167b30b7cd7398ccb2