A distributed reference management scheme in presence of non-convex constraints: an MPC based approach