tools/desktop: use close_socket() to shutdown client connections
tools/desktop: use close_socket() to shutdown client connections

This allows to call the proper function to close the socket depending on
the platform (typically, we want to call closesocket() instead of close
on Windows).

Fixes the ngl-ipc client being stuck on the recv call on MinGW.

gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl,gopro/gopro-lib-node.gl