infinoted: flush the log file after writing to it