JS RTS fixes (#22575)
Two JS RTS fixes authored by @luite:
- fix #22575 (closed) by using setTimeout when setImmediate isn't available. Tested by @hsyl20.
- fix threadStatus for bound threads. Found when running the testsuite a while ago but wasn't included into the big JS backend merge commit. Should help with the upcoming MR adding full testsuite run on CI for the JS backend.