When a broken stat is detected, register it.

Re-use the 'safe' stat calc funs in riak_core.