Condition variable predicate rewritten using boost::ref.