if you lock a chest with the data tag Lock: "..."
it will say it is locked.
but you can destroy it even if it is locked...
so it is useless to lock it besides gamemode 2
where you can't break blocks and it can be used