avoid function call to pthread_self in mutex unlock