This work was partially cherry-picked from Andrew's WIP std.fs branch. However, I also analyzed and simplified the Mutex and Condition implementations, and brought them in line with modern Zig style. Co-authored-by: Andrew Kelley <andrew@ziglang.org>