[libvirt] [PATCHv3 14/26] locking: Add APIs to lock individual image files