Initial abstraction of pthread condvars.