registry: change reghook_cache_init() to return WERROR and use it in the callers.