Keeping slaves from escaping is simple: fear. You could be whipped or killed, you were unwelcome anywhere in society, and there were laws enforcing their capture and return. No infrastructure needed.
Slavery was wildly economically feasible, still is. All you need to do is add pressure to the workers and their performance increases. Like Amazon warehouse workers, but, you know, with whippings.