Fix another potential deadlock with simulation.