There isn't a way to lock files inherently within Confluence. Confluence is not a documentation management application. If you wanted to do something like this, as an example, you could have links to files that are stored/managed by a documentation management solution, for example SharePoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.