Paths to diversity in gender-biased professions