Further enhancements to threadtest3 stress tests.