Fixed agl_resource_is_reflective's atomic comparison (not using _ptr variant).