cthread => moving method release_thread() to cthread::stop() method