Add load-once logic to 'Sha protocol & 'ByteSha type.

Without this load-once logic, recompiling the namespace will break any
future equals comparisons.