Replace default_stat in std::path with a Default impl for libc::stat

Instead of the internal `default_stat` function in `std::path`, make the `stat` structure implement `Default` and have the path code use that.  Closes #9537.  Alternative to #9637.