Two novel classes of solvable many-body problems of goldfish type with constraints