s3/profiles: improve copy_registry_tree() errors