[v9.x backport] PRs: 17403, 17456 and 17588
No changes made. Just required applying the PRs in the right order.
CI: https://ci.nodejs.org/job/node-test-pull-request/12858/
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
domain, events