Lock log output on Log class construction.
Flush after each write