[FLINK-1222] Tasks send close acknowledgements early.
[runtime] In local mode, make sure taskmanagers have completed registration before starting a job.
[FLINK-1215] Fix spurious failures when creating output directories due to I/O races