Intriguing photographs from sexologists’ archives suggest they could have helped people explore their gender identity and sexuality.