Code Review: Fix to-disk queue infinite growth.

We discovered a bug while manually testing this branch on a live
instance, whereby the to-disk queue was never actually dumped to
disk.