Update word_count-pthread.c

change something to make it work on dthreads