s3:registry: add db_context argument to init_registry_key_internal()