new file:   lock.cpp, lock.hpp
rename connect_tcp()
TCPServer::max_client() added.