Convert NoopPyInterpreterVTable into a Meyer singleton (#84656)

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/84656
Approved by: https://github.com/wconstab
diff --git a/c10/core/impl/PyInterpreter.cpp b/c10/core/impl/PyInterpreter.cpp
index a00c872..d8c7784 100644
--- a/c10/core/impl/PyInterpreter.cpp
+++ b/c10/core/impl/PyInterpreter.cpp
@@ -67,9 +67,8 @@
 };
 
 void PyInterpreter::disarm() noexcept {
-  // Intentionally leaked
-  static PyInterpreterVTable* noop_vtable = new NoopPyInterpreterVTable();
-  vtable_ = noop_vtable;
+  static NoopPyInterpreterVTable noop_vtable;
+  vtable_ = &noop_vtable;
 }
 
 } // namespace impl