Fix wait for calibration problem. 

It was iterating through a list while elements were being removed by another thread.
The effect was that, depending on the timing, sometimes the script never subscribed to a calibration controller, and stayed waiting forever for the calibration to finish.

Long explanation for a such a short PR.