cec: refactor CEC read/write. keep a single lock for all writes, not one per device