I'm trying to build a quite simple flow, pulling some file contents via HTML GET, create an Excel file with a table and then list some filtered rows from that table. In order to setup that flow I had to create the tempClosure.xlsx in the destination folder, containing Table1

To my utter satisfaction, this worked like a charm on the first try

But next time it failed with
The file https://{tenant}/sites/{site}/GRDA/Closure Report/tempClosure.xlsx is locked for shared use by {me}
I then added a step to delete the file after use. Now the Create File action succeeded, but the List rows present in a table step failed, because it referred to the original table ID, which no longer existed:
No table was found with the name '{301239FC-7969-4BFC-8010clientRequestId: 3a02dda4-663a-4466-9b32-5d8e90a6a4bf
As suggested in several posts in the community, I added a check-in step before the create file action to ensure the file is not checked out. That worked as well on the first try, but again just once. Next run failed with the same initial error
The file https://{tenant}/sites/{site}/GRDA/Closure Report/tempClosure.xlsx is locked for shared use by {me}
Why is that file locked for shared use by me? When I open it from the SP Library, it says
To prevent accidental changes, the author has set this file to open as read-only. [Edit Anyway]
May this be causing the issue? I'm not aware of where the flow would set this flag, is there a way to supress/remove it?