Lock-step. A mode of marching by a body of men going one after another as closely as possible, in which the leg of each moves at the same time with and closely follows the corresponding leg of the person directly before him. [Thomas Wilhelm, "Military Dictionary and Gazetteer," Philadelphia, 1881]
Figurative use by 1836.