Yes - A persistent object reactor attached to the layer would be one technique. Objects could still be added to or modified on that layer via program operations unless other reactors were operating also. For high security, Cadlock would be the best choice.
What is your reason for locking layers in this way?
The intent of the lock mechanism is for the convenience of the drafter to avoid accidentally modifying objects on those layers.