fix(ext/node): stub out Module.register and Module.registerHooks (#31666)
Stubs out `Module.register` and `Module.registerHooks` functions that
are meant to be used for Module Loader hooks as per
https://nodejs.org/api/module.html#customization-hooks.
This is a follow up to https://github.com/denoland/deno/pull/24965
Ref https://github.com/denoland/deno/issues/31665.
Improves error message from
https://github.com/denoland/deno/issues/30538#issuecomment-3658925471.