Add Logger.mu mutex to ensure atomic writes