I think the reason is that the test is not decreasing the latch and so the thread might not start always as expected.