Lock parameters when simulation is running.