Remove bogus use of aTHX_ in code

This seems to fix compilation on a threaded Perl