registry: add UnitHash to published UnitStates

This introduces a new field in UnitStates containing the string representing
the Hash of the associated Unit, to disambiguate between UnitStates published
with the same name but actually representing different Units.
Does this call actually need to be made within the context of the locked mutex?