Make redmine_s3:files_to_s3 thread safe again.