std.stdio: Add file locking function
Merge pull request #1814 from CyberShadow/std-stdio-flock

std.stdio: Add file locking functions