MULE-7677 Mule fails to process all files when streaming="true"

you have no guarantee that both threads are stopped at the latch when releasing. This doesn't properly test the scenario. You either have to make the listener control the latch and release it once both threads are stopped on it, or use a CountDownLatch with N = 2