Middle - Background task writer sends tasks to disk promptly

The background thread does not sort the tasks, but instead uses a subsequent
pass to sort the index of tasks.  This pushes the bottleneck to the zlib
compression routines.