add mutex lock when back_log append
refactoring log_buffer, thread create function, log_file class