s3: correctly detect if the current dc is the closest one