fix race-condition on "simctl erase" command