Flush stdout and stderr in TCKUtils
Some output is done in a child process, which means we have to proactively flush to prevent interleaving the outputs of the two processes.
This fixes intermittent failures in TCKUtils tests that compare with references.
Edited by Rosen Matev