Fixed #994: thread_rescheduling regression test does not compile , this time for real