s3-registry: avoid using registry_value union.