[libvirt] [PATCH v4 3/9] qemu_monitor_json: Move InetSocketAddress build to a separate function