Make linc:port_down/up resistant to multiple invocations

Now invoking linc:port_down/up twice does not crash the port.