Code that disables object storage for the export rake task is ever-so-racy
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=216839)
</details>
<!--IssueSummary end-->
The following discussion from !30637 should be addressed:
- [ ] @nick.thomas started a [discussion](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30637#note_335786470): (+1 comment)
> This is ever-so-racy :grimacing:
>
> It doesn't matter **so much**, since we only ever use it in a single-threaded context, but this file and class are not obviously rake-only. Can we have a follow-up issue to fix this?
issue