[Pthreads] fix compiling warning