fix threading's do_stop function to approximate the functionality delivered by the other async modules.
fix threading's do_stop function to approximate the functionality delivered by the other async modules.

progrium/ginkgo