server - safe tcpsock on multi thread