Add SocketInputStream.duplicate