[FLINK-909] Additional superstep barrier

This change introduces a new additional barrier at the end of a superstep in iterations. It prevents the execution of an extra iteration at termination and therby fixes[FLINK-909].

This pull request depends on [FLINK-951] and uses the old package names, because [FLINK-951] was not merged yet.