fix boost::condition_variable::~condition_variable(): Assertion `!ret' failed at exit