InetConnector: fixes some thread safety issue.