One might even decide that bars 5-6 are "varied" enough that the second phrase could be called a continuation and the whole a sentence. In my view, however, that would be a failure to recognize obvious things in the music that tell us "bar 5 is like bar 1--hear that?"
In K. 164, the trio to n6 is one of the periods that might have been read as a presentation-consequent theme:
Here is a similar problem with a different result: K164n3, the trio:
Does bar 5 act like the opening of a consequent, rather than, as I have it, a continuation phrase? The "dogged adherence" to a figure would certainly suggest it, but what's lacking here is a sense of returning to the beginning, which a consequent must have. Here the sequence, going down by thirds (D-B-G in the melody), erases any sense of "starting over." If anything, this theme sounds like a six-measure phrase + a cadence.