[JBTM-2242] Wait for threads before testing assertions

!BLACKTIE !QA_JTA !QA_JTS_JACORB !XTS