What totalitarian states do is they make it illegal to leave... First they restrict the amount of money you can leave with - then they dont allow you to leave either.
They don't have any problem with a wall as long as its for keeping innocent people in.