[FOLD]

* Update stopped() and stopRecursive() so that the change to both m_stopped and the notification happen atomically of the two condvar waits that occur in stopRecursive()
* Add second sleep_for in unit test to prevent spin lock behaviour on machines with two or less CPU's.