JS: Some fixes for IO and streams (#22349)
This fixes
- threads always stuck in
uninterruptibleMaskwhen in blocked IO (async exceptions should still be used with caution) -
stdinhandler installed on startup affects file descriptor for other uses - reserve one more 'virtual' file descriptor (for upcoming
processpackage support)