cec: don't use the pid in dev_lock()/dev_unlock() calls