(Wangle) Allocate lambda space inside Core instead of inside std::function