fixed WHOHandler.c multithread compatibility