correcting thread data pointers in pthread.c