Fix a race in storage tests.