Concurrency fixes for ModbusTCPListener