fix up threading in provisioning tests