Fix test_cross and numpy backend cross() for NumPy>=2.5.0 (#23408)