rgw: avoid doubled ARN in GetBucketReplication for pre-existing data
Before commit
b8f89327e1a ("rgw: handle destination bucket as an ARN
in ReplicationConfiguration"), the PutBucketReplication handler stored
the full ARN string (e.g. "arn:aws:s3:::bucket") as the bucket name
in the sync policy. After that commit, the GetBucketReplication
handler wraps the stored bucket name in a new ARN via
ARN(rgw_bucket).to_string(), which produces a doubled prefix like
"arn:aws:s3:::arn:aws:s3:::bucket" for buckets whose replication was
configured before the fix.
Detect whether the stored bucket name is already a valid S3 ARN and
use it directly instead of wrapping it again. New data written after
b8f89327e1a stores only the bare bucket name, so the else branch
handles that case unchanged.
Fixes: https://tracker.ceph.com/issues/75770
Signed-off-by: Lumir Sliva <lumir.sliva@firma.seznam.cz>