Mott transitions in ternary flavor mixtures of ultracold fermions on optical lattices