Flop transitions in cuprate and color superconductors: From SO(5) to SO(10) unification?