[libvirt] [v2 2/3] Syncronize the teardown of rules with the thread