Lock? What?
Isn't this just having a script output whatever value.ToString() to the label.text?
Or do you want to set the value in the inspector and parse, and set it in a "receiver" variable?
I suppose you could do something like this in a similar way that the EventDelegate exposes methods for callbacks, you could expose members for values. Not sure of the big gain in building it into the UILabels themselves though.