[UIMA-3992] improve the reliability of the test by using Java thread priorities. Also, run the test in a small loop - 10 iterations.