Lock by Layer lets you lock or unlock Groups and Components on a layer while skipping loose geometry and other entities like for example images. All items on the selected layer are selected so you easily can see if there are some unlockable items.
https://sketchucation.com/pluginstore?pln=LockbyLayer