[libvirt] In libxl_driver, how to lock/unlock objects while doing an operation that runs for a long time?