Phase Transition between Coherent and Incoherent Three-Wave Interactions