HAMMER 37/Many: Add a flush helper thread, clean up some inconsistencies.