[libvirt] [PATCH 09/10] Move domain lock / job helper code to separate file