ck_cohort: Added trylock support to cohort framework