Remove unused qd_lock.
Convert the control_lock to a cg_lock.