Dynamical bifurcation as a semiclassical counterpart of a quantum phase transition