qemu-char: move pty_chr_update_read_handler around