Commensurability governing skyrmion diffusion in confined geometries