mesa: Fix and speedup gl_array_object::_MaxElement computation.