Adjusted Makefile to other tests
Use pthread_mutex_init for initialization.