Changing sex on passports and driver’s licenses to appease those confused about their gender poses security risks, according to critics.