s3: add default_retry that takes number of retries