This is to avoid crashing in NSWL1Simulation when running with multi-thread mode reported in ATR-24207, ATR-24412.