Phase solitons in a weakly coupled three-component superconductor