s3-registry: only include registry headers when really needed.