Fix `Dir.statFile` for WASI when linking libc

`statFile` now only uses `os.fstatatWasi` when not linking libc, matching the pattern used throughout other `Dir` functions. This fixes the compilation error: `error: struct 'c.wasi.Stat' has no member named 'fromFilestat'` (which the added test would have failed with)
f46008c1d8Ryan Liptak committed on 8/31/2023, 9:07:15 PMparentf4c9e19
2 files changedLine totals unavailable