fix NETMSG_TEAMSTAT (thx Yaribz)
ThreadPool: add more optimizations for singlethreaded case