src: cherry-pick from downstream, worker prep by jasnell · Pull Request #15707 · nodejs/node

Cherry-pick of downstream ayo commits. PR: ayojs/ayo#82 PR: ayojs/ayo#85 /cc @addaleax Checklist make -j4 test (UNIX), or vcbuild test (Windows) passes commit message follows commit guidelines ...