MAINT: also disable has_ufunc_attr

see gh-4920
Merge pull request #4925 from juliantaylor/ufunc-disable2

MAINT: also disable has_ufunc_attr