mesa/glthread: correctly compare thread handles