This PR adds the material locking functionality from the current grease pencil. Material locking allows the user to lock strokes with that specific material. Locked strokes cannot be edited. Pull Request: https://projects.blender.org/blender/blender/pulls/114580