CC-5109: Fix race-condition when updating cc_pref table

-not a race condition..was a logic error.