gpu.c: keep track of local kernel variables in ppcg_kernel