Write queue after connect windows

It is tricky here.

tty doesn't need a queue because stdin/stdout is already open and creating a tty happens instantly (no callback/only init needed).

So we need to return broken pipe on stdin TTY.

Then we need to check if a handle is invalid, return EBADF, then we need to go on with the checks.