qemu-img: Check getchar() return value in read_password() for WIN32