implement mutex function. execute 14 thread, but sometime will crash