s3: Slightly simplify the logic in defer_open