Use QAtomicInt for multi-thread safety
Make s_maxNofRunnables QAtomicInt avoids undefined muti-thread behavoir. Optimizations can otherwise cause a race by reusing the variables memory location.