cec: created a separate reader thread and fixed the 'lock timeout' bug