Thermally activated dislocation motion in a periodic internal stress field