mesa: Deal with size differences between GLuint and GLhandleARB in GetAttachedObjectsARB