fix a mistake in tcp_acceptor that is relevant in multi-threading