[libvirt] [PATCH] Fix potential deadlock when agent is closed