turnip: fix a use-after-free in autotune
When removing old histories, check against gpu fence. Otherwise, pending_results could have dangling pointers to the removed histories. Closes: mesa/mesa#7055 Cc: mesa-stable Part-of: <mesa/mesa!18040> (cherry picked from commit b8a916fd)