Women were a sizeable presence in schoolteaching from the start – they already outnumbered men by 1870. But, employers and politicians – and male colleagues – have been slow to accept them as professional equals. And then, as now, the top job was often out of reach