From gender reveals and adoption to sex-selective IVF, the world’s historical preference for sons is showing signs of reversal.