Include cond and mutex in chan struct instead of malloc'ing