Spatially quantized friction with a lattice periodicity