std.stdio: Add file locking functions