fix #6375 (corrupted output while printing to a terminal)

Due to recent changes in libuv, TTY writes are now non-blocking.