Revert "Made tasks list not thread local."

This reverts commit 755943b30eebbab66f761b2cc11e4fb27d75523a.