I don’t know how this would work exactly BUT it would be extremely useful to be able to do nondestructive operations on locked layers. E.g., one could select curve on a locked layer, extrude the curve, but not be able to delete the curve.
A possibly way might be to have three states (unlocked, selectable, locked).