[nnc] Made several LoopNest APIs static (#59494)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/59494
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D28915959
Pulled By: navahgar
fbshipit-source-id: bf52e30d893f4d86812219b538a14307f347f10b