I suspect that if there are multiple river shipping companies but one monopoly lock operator, all of the economic surplus in the river transport industry will be captured by that monopoly operator.
Perhaps the solution is for the river shipping industry to form a co-op to build, own and operate the necessary infrastructure.