[libvirt] [PATCH v1 17/23] locking: Favour enum type over int