MAINT: remove weird int_asbuffer function

Seems to be a remnant of some old buffer code, no internal usage and
naming and no docstring suggests it was not meant to be used outside of
numpy.
As it is not used, remove it. Its likely buggy anyway as the longjmp
clobbers the error variable.