async_hooks: fix Promises with later enabled hooks
Based on https://github.com/nodejs/node/pull/13224
Fixes: https://github.com/nodejs/node/issues/13237
/cc @AndreasMadsen @matthewloring @Fishrock123 @nodejs/diagnostics
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
async_hooks