This fixes a race when checking if object ring is synced. (cherry picked from commit 0598ecfc9b)
0598ecfc9b