A Mechanism for Generating Packets of Hairpins in Shear Flows