worker: release native Worker object earlier
Destroy the Worker
class earlier, because we don’t need access
to it once the thread has stopped and all resources have been
cleaned up.
Fixes: https://github.com/nodejs/node/issues/26535
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines