[libvirt] [PATCH] locking: remove redundant codes