Go to the “Layers” (F7) panel on the right side toolbar. Select the layer you want to lock, and then click on the “Lock” icon. Your layer is locked when the “Lock” icon displays on the layers row. Now, if you want to unlock the layer, simply click on the “Lock” icon again to unlock it.