Simply Lock file from edits

It makes sense, though every OS lets you write protect files already. Its
one cli commands away as temp workaround.

For now a good prevention from losing changes (though indirect) is frequent git commits so you dont lose changes but also see what was changed.

Unfortunately even when another extension prevents file writes (for various reasons) the user will have a hard time to figure out why it happens.