Layer lock functionality

Adding functionality to lock a given layer