Merge pull request #6545 from RosettaCommons/roccomoretti/fix_autoupload
[Foldit] Address race condition in auto solution upload.
We're currently getting disk usage errors with the auto solution upload. It looks like the cause is a race condition where the main thread is adding to the same data structure that the solution thread is uploading from, which results in fresh solutions being immediately uploaded, rather than waiting for the next upload window.
We can move the to-upload data to a local data structure to avoid the race condition. (We just need to make sure to copy the not-yet-uploaded data back if we encounter a server error.)