gallium/tc: fix two race conditions
- gallium/tc: protect setting tc->driver_thread with a mutex: this is only a thing in debug mode, but it is still better to silence the race condition to remove some noise when running with thread sanitizer.
- gallium/tc: make access to tc->last_completed atomic: It is not clear to me whether the race condition has an impact on zink (or other drivers) correctness