protov2: avoid writing a flush packet directly after the 'deepen' command
The 'deepen' command will be followed by further commands, most importantly
the 'done' command. If a server implementation stops reading after the flush
packet then the 'done' command will be missed, and pack negotiation will fail.
Observed with JGit which will send 'acknowledgment', waiting for more wants
or a 'done' command to arrive. Fixes issue #1561