[Bug 51182] test_write_console() fails in conhost.exe:tty on Windows 1909