[libvirt] [PATCH] build: use re-entrant functions in virsh