[libvirt PATCH v4 19/25] virsh: Factor out function to find node device