chardev: remove many local variables in qemu_chr_parse_socket