This function lock all unlocked layers.


To lock all layers:

Select Layers menu > Layer visibility > Lock all layers