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

git-svn-id: https://svn.apache.org/repos/asf/uima/uimaj/trunk@1619210 13f79535-47bb-0310-9956-ffa450edef68