Makes openssl compile with no-sock parameter.

Previously, under Windows, if the following was executed:

perl Configure VC-WIN32 no-asm no-sock --prefix="C:\Users\Administrator\Documents\openssl\builddir"
perl util\mkdef.pl crypto ssl update
ms\do_ms
nmake -f ms\nt.mak

then the build would fail. This is because not all socket-related functions were under #ifndef OPENSSL_NO_SOCK.

After my changes, the build succeeds, and all tests from running "nmake -f ms\nt.mak test" pass.