Try fix to #4151
Merge pull request #5616 from JuliaLang/sf/socketfix

Fix socket tests on windows