Used mutexes to synchronize download progress.