fix namespace issue in pthread_join affecting thrd_join