Extremal Shift Rule and Viability Property for Mean Field-Type Control Systems