cec: keep the mutex locked when calling ReplaceHandlers() in CCECProcessor