Add a check for pthread_setname_np with three parameters