Global data on math achievement is revealing a dismaying trend: Girls are doing worse than boys — and the margins are huge.