core.sys.windows.windows: Add file locking APIs
Merge pull request #700 from CyberShadow/windows-locks

core.sys.windows.windows: Add file locking APIs