[PATCH v2 03/11] flow, tcp: Consolidate flow pointer<->index helpers