multithreads write logfile with mutex