[libvirt] [PATCH 1/4] virsh: Move job watch code to a separate function