qemu-sockets: fix conversion of ipv4/ipv6 JSON to QemuOpts