Fix s3 thread safety

We figured out that `S3Uploader` is not thread safe and thus fails when used as a stratum 1 backend. Fixed.