Ensure there is an autoreleasepool properly set up for the API Operation thread

The API Operation thread is long lived and may accumulate memory without this pool.