Also fix memory leak in Net.Ipv4AndIpv6Work Rust tests fail to link when building in san directory, works in source directory.
Previously, the socket addresses were truncated as the `msg_namelen` field is both input **and** output: After receiving an IPv4 packet, the socket address field would be too short for an IPv6 address.