add mutex to log_stdout