implement pthread_[sg]etconcurrency.