Effects of periodic potentials on the critical velocity of superfluid fermi gases in the BCS-BEC crossover