use atomic variable to fix TcpServer::start thread-safety issue

用AtomicInt32保证TcpServer::start的thread-safety