The Soviet Union made it hard for republics to leave — so