Solving the max-3-cut problem using synchronized dissipative networks