Do you want to prevent the user from changing custom property values or do
you only want to prevent the user from adding / removing custom properties?
The LockCustProp cell in the Shapesheet prevents changes to the definition
of custom properties (as well as adding / removing) but allow the user to
change property values.
If you want to completely lock the property, I suggest setting the Invisible
cell to True so that the user cannot see it. A fallback would be to wrap
the custom property value with the GUARD function.