What causes a Writer .odt document to become locked for editing and how can it be unlocked?

I have discovered that some writer documents I created in the past I can no longer edit because when I open them they say they are locked for editing. I did nothing intentionally to cause this. I need to know how to stop this from happening and how to unlock those affected documents.

Are these file attached to emails? If so remove them.
LibO has a security function to not allow editing when a file is attached to an email.

If not attached to an email, open file and save with a new name. Please make sure that you don’t save files with password for read only.

If problem persists, I would reset my user profile. For details please refer to: https://wiki.documentfoundation.org/UserProfile

it does not work for me