o Remove taskthread dependency, replace with custom (and small) code. Closes #7414.