Borders and socialism seem perfectly compatible to me. Or do you mean that he was both a socialist, and against borders?
Socialism today seems to agree with borders ( https://www.youtube.com/watch?v=vf-k6qOfXz0 ), and back then, there was national socialism...
You can read it online