In the review of WT-7577 we recognized we need a spinlock to prevent multiple threads from calling flush_tier at the same time and getting past the new code to wait for the previous call to complete.
This ticket will address that work so that the other ticket can get merged as this work involves a new configuration item and is outside the topic of the other ticket.