Instead of locks they could have those conveyor belts like they do at Amusement Park boat rides.
In thinking about this it could function much like a ski chair lift. The next problem would be to devise the terminal at each to load and unload the shipping containers at an efficient pace of production...