windows: Provide a write(2) wrapper that uses send(2) on sockets