Gate-tunable heavy fermion quantum criticality in a moiré Kondo lattice