[libvirt PATCH v2 05/12] virthread: Introduce virLockGuard