In 90% of cases, you do not need to create a new file or download a new ROM. You simply need to change the setting in the Mi Flash Tool.
Searching the error online, you may find shady forum posts offering a standalone flash-all-lock.bat download. mi flash error cannot find file flash-all-lock.bat