[network] Add ToSocketAddrs support for NetworkAddress
[network] Add ToSocketAddrs support for NetworkAddress

For many TCB applications, we really just wanted a SocketAddr and don't
have a special requirement on how the DNS or parsing work, this provides
a conveience wrapper to convert from dns* and ip* to SocketAddr.

Closes: #4790
Approved by: joshlind

aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,aptos-labs/aptos-core,libra/libra,libra/libra,aptos-labs/aptos-core,libra/libra,libra/libra,libra/libra