netfilter: {ip,ip6,arp}_tables: fix incorrect loop detection