dbwrap_ctdb: Align loop index with terminator