Fix XnioSocketChannel.connect(...) and some cleanup