Fix post-reload state dumping

Since 9d5b7e9 we were creating a new state dumper on reload, but not giving the new instance a reference to the task pool, which resulted in truncated state dumps (no task states).