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