[Libvirt-cim] [PATCH 01 of 11] EAFP: fix stale issue with threads