Check return from pthread_mutex_trylock()