Synchronized flushing of all logs