[libvirt] [PATCH] test: fix potential lock corruption in test driver