=act #15991 delay sending of ACK until we have updated pendingWrite

Otherwise, the user-level actor may already have sent the next chunk before
the pendingWrite has been updated and the TcpConnection will reject it.