Line-tying effects in the Kelvin-Helmholtz instability