Trying to write a unit test for pthread_mutex_trylock... need some brain surgery and code review