Tcp: introduce WriteFile to support zero-copy writing of files (using FileChannel.transferTo), fixes #2896