Handle TCP sockets in isc__nmsocket_reset()
The isc__nmsocket_reset() was missing a case for raw TCP sockets (used by RNDC and DoH) which would case a assertion failure when write timeout would be triggered.
TCP sockets are now also properly handled in isc__nmsocket_reset().
Closes #3177 (closed)