std.fs.File.writeFileAll: support unseekable files

With this commit, the function tries to use more efficient syscalls, and
then falls back to non-positional reads.

The motivating use case for this change is to support something like the
following:

try io.getStdOut().writeFileAll(dest_file, .{});
ede41759beAndrew Kelley committed on 11/3/2020, 10:25:43 PMparent37bc6ee
1 file changedLine totals unavailable