[Bug 53011] Multithreaded compilation fails sometimes due to race conditions