unit-tests: Give worker threads time to clean up when testing detach()
TEST