Lock a file in windows