Locked to a layer of another comp, the panel shows the active comp's
selection and its tab lock reads locked (a click unlocks). ui.set
{effectControlsLocked: true} reported success there without locking the
shown layer; it now returns an error and keeps the other comp's lock.