fix hanging problem
some threads could be stopped before re-entering the loop, hence never calling the startBarrier and causing the whole lot to hang forever.
Authored by: thibautd 2013-12-17
Parent: [r27228]
Child: [r27230]