Add task-local alloc and free.