[libvirt] [PATCH 1/2] remote: Avoid the thread race condition