libdeng2|Fixed: Lock log entries while they are being flushed

Added a guard that protects each log entry as they are flushed to
the sinks.