Make condvars safe