registry: remove the REGISTRY_HOOKS layer from the reghook cache.