Add an autorelease pool to the NSThread entry point