Apt fixes

Some fixes to the 3DS APT:U service HLE emulation. Tested on various apps. CF 3dmoo. Not much else to say here...
I suggest aligning this with "KERNEL" (i.e. the first function argument)