When Steam updates a game and reports that a content file is locked, it means the file it needs to replace is currently held open by another process. The common holders are the game itself (crashed but not fully closed), a leftover helper process, antivirus scanning or quarantining the file in real time, or, occasionally, a failing drive misreporting access. The error names the exact file, which makes it more fixable than most.
Ctrl+Shift+Esc) for the game's process or launcher helpers still running, and end them.The error includes the path of the locked file, and that path tells you where to look. A file inside the game's folder points at the game or antivirus. A file inside Steam's downloading folder points at a stuck partial download, which clearing the cache or verifying usually resolves. A file that changes every attempt is more suggestive of drive trouble or aggressive real-time scanning.
Why does it happen right at the end of an update? Updates patch large files at the end of the process. If the game or its anti-cheat left a process running, or antivirus scans the newly written file at that moment, the last file is exactly where a lock appears.
Is content file locked the same as disk write error? They are siblings, not twins. A disk write error says Steam could not write; content file locked says why in this instance, another process holds the file. Locked-file fixes come first for this message.