Issue #9425: Create private _Py_stat() function

Use stat() or _wstat() depending on the OS.
2 files changed