windows: fix check in uv_tty_endgame()