Global logger lock

Issue #224 has me slightly stumped.  But it does seem like our logging facility is not safe to use from multiple threads. This is the first possible fix that came to mind... I've started the DGI probably about 200ishish times now without getting any corruption, and it used to happen every maybe 30-60ish runs, so it might work... do please look this over.