Fixed local pthread_t