[PATCH] mstask/tests: Work around race conditions with the task scheduler process.