fix for debug crash build (#95464)
Fixes https://github.com/pytorch/pytorch/issues/94376
⚠️ Hacky fix
Details about use of `noop_vtable`:
https://github.com/pytorch/pytorch/blob/d677432b706904f84b08bfee5d8bec7c4e220894/c10/core/impl/PyInterpreter.h#L92-L102
Currently, at destruction, `noop_vtable` goes out of scope first while there are dangling references to the object still present with other objects like `PythonKernelHolder` which is held by the singleton `Dispatcher`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95464
Approved by: https://github.com/ezyang