Green’s Dictionary of Slang

chalks n.

[ety. unknown; ? resemblance to sticks of chalk]

[mid-19C] the legs.

In phrases

walk one’s chalks (v.) (also stir one’s chalks, walk the chalk, — the chalks)

[mid-19C] to leave, to go away; also as imper.