modification on struct thread_t and ID[tid], change the code location of mutex initialization