lock-stepped

adj.

You have drunk enough to advance in strict formation behind one’s own heel, eventually reaching the coat stand.

Avriel came lock-stepped down the corridor, each foot pursuing the other with military seriousness.

Source: Wiktionary