Thread: added test for #9303.

[SVN r86569]
Thread: Added user_scheduler (loop_executor).

[SVN r86570]