[libvirt] [PATCH] Fix misc thread locking bugs / bogus warnings