gui-thread-check.c: use fflush() after printf()

Using fflush() right away after printf() calls avoids the buffers to
be written in an apparently complete-out-of-sync way from the point
of view of the developer. This problem would specially occur when
redirecting all output to a file this way:

  mono Foo.exe > out.txt 2>&1

Without this fix, all the output from gui-thread-check would appear
at the end of the file, instead of in between the output generated by
the program.
Merge pull request #7 from knocte/use_fflush

gui-thread-check.c: use fflush() after printf()