Stability of three-phase ternary-eutectic growth patterns in thin sample