s/task/thread/g

A part of #20038 

This is just the beginning of what needs to be done, but it's some of it. 

/cc @aturon