Dicke-type phase transition in a spin-orbit-coupled Bose–Einstein condensate