by 1851, "air-tight chamber in which operations are carried on under water," to regulate pressure for the safety of workers, from air (n.1) + lock (n.1) in the canal sense.
Entries linking to air-lock
air n.1
c. 1300, "invisible gases that surround the earth," from Old French air "atmosphere, breeze, weather" (12c.), from Latin aer "air, lower atmosphere, sky," from Greek aēr (genitive aeros) "mist, haze, clouds," later "atmosphere" (perhaps related to aenai "to blow, breathe"), which is of unknown origin. It is possibly from a PIE *awer- and thus related to aeirein "to raise" and arteria "windpipe, artery" (see aorta) on notion of "lifting, suspended, that which rises," but this has phonetic difficulties.
In Homer mostly "thick air, mist;" later "air" as one of the four elements. Words for "air" in Indo-European languages tend to be associated with wind, brightness, sky. In English, air replaced native lyft, luft (see loft (n.)). In old chemistry, air (with a qualifying adjective) was used of any gas.
To be in the air "in general awareness" is from 1875; up in the air "uncertain, doubtful" is from 1752. To build castles in the air "entertain visionary schemes that have no practical foundation" is from 1590s (in 17c. English had airmonger "one preoccupied with visionary projects"). Broadcasting sense (as in on the air, airplay) is by 1927. To give (someone) the air "dismiss" is from 1900. Air pollution is attested by 1870. Air guitar is by 1983. Air traffic controller is from 1956.
lock n.1
"means of fastening," Old English loc "bolt, appliance for fastening a door, lid, etc.; barrier, enclosure; bargain, agreement, settlement, conclusion," from Proto-Germanic *lukana-, a verbal root meaning "to close" (source also of Old Frisian lok "enclosure, prison, concealed place," Old Norse lok "fastening, lock," Gothic usluks "opening," Old High German loh "dungeon," German Loch "opening, hole," Dutch luik "shutter, trapdoor").
Ordinary mechanical locks work by means of an internal bolt or bar which slides and catches in an opening made to receive it. "The great diversity of meaning in the Teut. words seems to indicate two or more independent but formally identical substantival formations from the root" [OED]. The Old English sense "barrier, enclosure" led to the specific meaning "barrier on a stream or canal" (c. 1300), and the more specific sense "gate and sluice system on a water channel used as a means of raising and lowering boats" (1570s).
From 1540s as "a fastening together," hence "a grappling in wrestling" (c. 1600). In firearms, the part of the mechanism which explodes the charge (1540s, probably so called for its resemblance to a door-latching device), hence figurative phrase lock, stock, and barrel (which add up to the whole firearm) "the whole of something" (1842). Phrase under lock and key attested from early 14c.