[libvirt] Deadlock when using custom handlers