fix observed problem with latch in tests.
add test that may show problem with openjdk latches.