Make netmgr initialize and cleanup Winsock itself

On Windows, WSAStartup() needs to be called to initialize Winsock before
any sockets are created or else socket() calls will return error code
10093 (WSANOTINITIALISED).  Since BIND's Network Manager is intended to
work as a reusable networking library, it should take care of calling
WSAStartup() - and its cleanup counterpart, WSACleanup() - itself rather
than relying on external code to do it.  Add the necessary WSAStartup()
and WSACleanup() calls to isc_nm_start() and isc_nm_destroy(),
respectively.
76 jobs for !4458 with 2328-make-netmgr-initialize-and-cleanup-winsock-itself in 2 minutes and 9 seconds (queued for 8 seconds)
detached
Status Job ID Name Coverage
  Autoconf
passed #1339992
amd64 linux
autoreconf

00:00:18

 
  Precheck
passed #1339994
amd64 linux
clang-format

00:00:17

canceled #1339995
amd64 linux
coccinelle

00:02:07

passed #1339996
amd64 linux
danger

00:00:16

passed #1339993
amd64 linux
misc

00:00:18

passed #1339997
amd64 linux
tarball-create

00:01:39

 
  Build
canceled #1340010
amd64 linux
clang:asan

00:01:42

passed #1340014
amd64 linux
clang:buster:amd64

00:01:07

passed #1340017
amd64 libvirt
clang:freebsd11:amd64

00:01:21

passed #1340018
amd64 libvirt
clang:freebsd12:amd64

00:01:08

canceled #1340019
amd64 libvirt
clang:openbsd:amd64

00:01:38

passed #1340012
amd64 linux
clang:tsan

00:01:24

passed #1339998
amd64 linux
gcc:alpine3.12:amd64

00:01:02

canceled #1340009
amd64 linux
gcc:asan

00:01:42

passed #1340002
amd64 linux
gcc:buster:amd64

00:00:51

passed #1339999
amd64 linux
gcc:centos7:amd64

00:00:49

passed #1340000
amd64 linux
gcc:centos8:amd64

00:01:01

passed #1340008
amd64 linux
gcc:focal:amd64

00:00:57

passed #1340013
amd64 linux
gcc:mutexatomics

00:00:58

passed #1340004
amd64 linux
gcc:out-of-tree

00:01:10

passed #1340003
amd64 linux
gcc:sid:amd64

00:01:41

passed #1340005
i386 linux
gcc:sid:i386

00:00:56

passed #1340015
amd64 linux
gcc:softhsm2.4

00:01:05

passed #1340016
amd64 linux
gcc:softhsm2.6

00:00:59

passed #1340001
amd64 linux
gcc:stretch:amd64

00:00:57

passed #1340011
amd64 linux
gcc:tsan

00:01:11

passed #1340006
amd64 linux
gcc:tumbleweed:amd64

00:00:55

passed #1340007
amd64 linux
gcc:xenial:amd64

00:00:59

passed #1340020
amd64 windows
msvc:windows:amd64

00:01:05

 
  Unit
canceled #1340032
amd64 linux
unit:clang:asan

canceled #1340036
amd64 linux
unit:clang:buster:amd64

00:00:39

canceled #1340039
amd64 libvirt
unit:clang:freebsd11:amd64

00:00:24

canceled #1340040
amd64 libvirt
unit:clang:freebsd12:amd64

00:00:26

canceled #1340041
amd64 libvirt
unit:clang:openbsd:amd64

canceled #1340034
amd64 linux
unit:clang:tsan

00:00:04

canceled #1340021
amd64 linux
unit:gcc:alpine3.12:amd64

00:00:43

canceled #1340031
amd64 linux
unit:gcc:asan

canceled #1340025
amd64 linux
unit:gcc:buster:amd64

00:00:53

canceled #1340022
amd64 linux
unit:gcc:centos7:amd64

00:00:57

canceled #1340023
amd64 linux
unit:gcc:centos8:amd64

00:00:43

canceled #1340030
amd64 linux
unit:gcc:focal:amd64

00:00:42

canceled #1340035
amd64 linux
unit:gcc:mutexatomics

00:00:48

canceled #1340026
amd64 linux
unit:gcc:sid:amd64

canceled #1340027
i386 linux
unit:gcc:sid:i386

00:00:43

canceled #1340037
amd64 linux
unit:gcc:softhsm2.4

00:00:38

canceled #1340038
amd64 linux
unit:gcc:softhsm2.6

00:00:47

canceled #1340024
amd64 linux
unit:gcc:stretch:amd64

00:00:47

canceled #1340033
amd64 linux
unit:gcc:tsan

00:00:29

canceled #1340028
amd64 linux
unit:gcc:tumbleweed:amd64

00:00:46

canceled #1340029
amd64 linux
unit:gcc:xenial:amd64

00:00:36

 
  System
canceled #1340053
amd64 linux
system:clang:asan

canceled #1340057
amd64 linux
system:clang:buster:amd64

00:00:36

canceled #1340060
amd64 libvirt
system:clang:freebsd11:amd64

00:00:16

canceled #1340061
amd64 libvirt
system:clang:freebsd12:amd64

00:00:10

canceled #1340055
amd64 linux allowed to fail
system:clang:tsan

canceled #1340042
amd64 linux
system:gcc:alpine3.12:amd64

00:00:41

canceled #1340052
amd64 linux
system:gcc:asan

canceled #1340046
amd64 linux
system:gcc:buster:amd64

canceled #1340043
amd64 linux
system:gcc:centos7:amd64

00:00:57

canceled #1340044
amd64 linux
system:gcc:centos8:amd64

00:00:41

canceled #1340051
amd64 linux
system:gcc:focal:amd64

00:00:40

canceled #1340056
amd64 linux
system:gcc:mutexatomics

00:00:47

canceled #1340047
amd64 linux
system:gcc:sid:amd64

canceled #1340048
i386 linux
system:gcc:sid:i386

00:00:40

canceled #1340058
amd64 linux
system:gcc:softhsm2.4

canceled #1340059
amd64 linux
system:gcc:softhsm2.6

00:00:46

canceled #1340045
amd64 linux
system:gcc:stretch:amd64

00:00:46

canceled #1340054
amd64 linux allowed to fail
system:gcc:tsan

00:00:29

canceled #1340049
amd64 linux
system:gcc:tumbleweed:amd64

00:00:44

canceled #1340050
amd64 linux
system:gcc:xenial:amd64

00:00:33

 
  Docs
passed #1340062
amd64 linux
docs

00:00:35

 
  Postcheck
passed #1340066
amd64 linux
cppcheck

00:00:51

passed #1340063
amd64 linux
flake8

00:00:28

canceled #1340067
amd64 linux
gcov

passed #1340064
amd64 linux
pylint

00:00:27

canceled #1340065
amd64 linux
scan-build

00:01:37