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