Cluster and ACE observations of phase synchronization in intermittent magnetic field turbulence: a comparative study of shocked and unshocked solar wind