backport-1.8-3933

Backport #3933: `MAINT: Define NPY_NO_DEPRECATED_API in struct_ufunc_test.c.src`