A male heir might have saved Queen Mary’s reign, and changed the shape of global Catholicism for good.