Global mutex

Global static pthread_mutex_t variable. Error in test when duration is 60 sec