By removing 'data' from the thread struct and passing it in as an argument we avoid the case it could be dereferenced before stored when shutting down HTTPS RR. Also reordered the struct fields a little to remove holes. Closes #16169