Implement an autorelease pool in embind.