(chopped off from #19031 to ease review)
Add an optional support to serialize/unserialize CNetAddr
in ADDRv2 format (BIP155). The new serialization is engaged by ORing a flag into the stream version.
So far this is only used in tests to ensure the new code works as expected.