[libvirt] [PATCH v3 1/4] Add a read/write lock implementation