[FLINK-909], [FLINK945] Remove additional superstep at the end of iterrations

Fixes simultaneously the pitfall reported in [FLINK-909] and the memory release bug reported in [FLINK-945].