[libvirt PATCH v4 2/9] virthread: Introduce virLockGuard