Prevent parallel downloads of the same file with a lock.
Since the file is written to the filesystem, a filesystem lock is the way to go here. Add a dependency on the third-party filelock library to get cross-platform functionality.
This commit is contained in: