Connection between shear instability and metallic glass formation