Checking shared state too early messed up initialization.