[libvirt] [PATCH v1 3/8] qemu_monitor_json: Move InetSocketAddress build to a separate function