MAINT: refactor packbits/unpackbits

Pushes the GIL release one loop outward.
I think that gets handled by `PyArray_CheckAxis`.