Toggle Lock other layers

Basically Layer solo mode, but for locking layers.

Layer solo mode will hide the visibility of other layers, so we’re unable to edit other layers except the one selected.
Sometimes though, I want to see the other layers while getting ensured that I’m only able to edit the layer I want to edit.

So I’m looking for a feature where all other layers are locked except for the selected one.

Something to this effect that was done manually:
image

PMNG ver. 7.2.7.0