Error in mutex and condvar initializers