Fixed #994: thread_rescheduling regression test does not compile