s3:registry: move definition of registry_hook to reg_init_full.c - it's only user