Encapsulate some code in an autorelease pool.