Know how to use "fewer" and "less"? Find out.
"detention cell for offenders," 1838, perhaps short for earlier lock-up house; from lock (v.) + up. Meaning "action of locking up" is from 1845. The verbal phrase lock up is recorded from early 15c.