Fix issues with cyclic barrier test not compiling with older
version of java. ThreadYieldTest failing occasionally due to rounding
error and Synch test failing randomly.