This is a bit of a hack and could be worked around if someone was either clever enough or (un)lucky, but you could:
- go into screen lock settings
- check box by "Use Custom Screenlock Command"
- in the text box enter something like `zenity --info --text='Lock not allowed'`
This way, when the lock command is attempted in the System Actions, an info box will pop up saying locking is not allowed.