To lock/hidden layers except one:
- open layer panel (F7)
- holding ALT key click on Visibility or Lock icon
To lock all items on some layer except selected you can lock all other layers first as it was mentioned and then use inverse selection (Select->Inverse) and lock (object->lock).