Fixing a race condition in schema reload.