I think Game Freak just designed it like that. Personally though, I think that if Embargo did prevent you from Mega-evolving, you could just switch out and the effects would be gone. Considering there's already the 1 Mega-evolution per battle cap, preventing Mega-evolution is not really needed.