Chunk server: fix write pending total update when the chunk is "lost", deleted, or transitions from unstable state with no buffer flush, where the buffer content discarded.