net: fix inet_getid() and ipv6_select_ident() bugs