finishing lab1_thread_mutex.c