[Static Runtime] Add gflag to disable nnc and caffe2 math library (#61090)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61090
Reviewed By: ajyu
Differential Revision: D29479860
fbshipit-source-id: 2b53405f41d319f074c75d8923d97fd6a45fee4b