Make a local copy of interface address when creating new socket
Instead of keeping reference to the sockaddr from the ns_interface_t, we just make a local copy of the address, so we don't have to keep the reference to the ns_inteface_t object.
Closes #2721 (closed)
Edited by Ondřej Surý