Use atomic transactions for each call to add_user_to_cohort