[libvirt] [PATCH v2 1/2] tools: fix check_guests_shutdown loop