rem: tid = (int) tid;
add: tid = (int) thread;
context: NsSetThread(Thread *thrPtr){    pthread_t thread;    int tid, err;    thread = pthread_self();#ifdef HAVE_PTHREAD_D4    tid = pthread_getunique_np(&thread);#else    tid = (int) tid;#endif    err = pthread_setspecific(GetKey(), thrPtr);    if (err != 0) {        NsThreadFatal("NsSetThread", "pthread_setspecific", err);    }    NsInitThread(thrPtr, tid);}