luci-lib-ip: fix segfault in link() on systems with ip6gre support