Revert r30833, removal of obtainRawSocket.

This was prematurely merged from nmap-npingchanges. obtainRawSocket is
still used here.