Carrier-envelope phase dynamics of synchronized mode-locked lasers