Fix for TRQ-1851: deadlock around job arrays.