mesa: check for allocation failures in _mesa_new_texture_object()