14/27 tests failed. Fix sema and condvar.