Researchers are inching closer to mass-producing eggs and sperm in the lab from ordinary human cells. The technique could provide new ways to treat infertility but also open a Pandora’s box.