fix race-condition on "simctl erase" command
Merge pull request #3826 from Jonahss/simctlFix

fix race-condition on "simctl erase" command