prevent race conditions when render modes are re-compiled multiple times