Buffer writes to our logfile, to speedup.

  Running lumail-debug under gprof the logfile writing was a
 bottleneck.  Probably because we log too much data.  Buffering
 writes in batches of 50+ lines speeds things up.