gio/tests: DuplicateHandle() is inappropriate for SOCKET
Read Remarks from MSDN: https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-duplicatehandle#remarks
You should not use DuplicateHandle to duplicate handles to the following objects: Sockets. No error is returned, but the duplicate handle may not be recognized by Winsock at the target process. Also, using DuplicateHandle interferes with internal reference counting on the underlying object. To duplicate a socket handle, use the WSADuplicateSocket function.
Signed-off-by: Marc-André Lureau marcandre.lureau@redhat.com