src: schedule destroy hooks in BeforeExit early during bootstrap
Instead of doing it in the internalBinding('async_wrap')
initialization whose first call is uncertain depending on how
the native modules are loaded in JS land during bootstrap.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines