Flush log file after every write
This fixes missing log messages from bin/gitlab-shell.
I only found this problem when testing on Linux, I didn't see it on macOS. I think what happens is that Ruby buffers the log data somewhere and Kernel#exec
prevents it from doing actual writes to the file.
Edited by Jacob Vosmaer