D–D¯ mixing constraints on FCNC with a non-universal Z′