[libvirt] [PATCHv4 14/29] locking: Add APIs to lock individual image files