Try to make the adopted threading unit test a bit more stable.