Onset of sidebranching in directional solidification