Question: the file is locked microsoft teams?
Answer: Clear Microsoft Office Cache. A bad cache can create issues with file editing in Microsoft Team client. ... 
Reset Office Upload Center. Type Office Upload in the search bar. ... 
Update Microsoft Teams. ... 
Make Edits from SharePoint.