std.fs.Dir.openFile: use wasi libc API when -lc

Also removes the LOCK namespace from std.c.wasi because wasi libc does
not have flock.

closes #19336
related to #19352

Co-authored-by: Ryan Liptak <squeek502@hotmail.com>
d06e5b4349Andrew Kelley committed on 4/19/2024, 12:49:05 AMparent3c22146
3 files changedLine totals unavailable