Only flush visualizer output at the end of the compilation.

Otherwise multiple threads compiling will mix their output.

Test: run-tests
Bug: 147094528
Change-Id: I905c8874cbe2c02c2d79577024d4606a3784b67a
1 file changed