BarlowWalk: Self-supervised Representation Learning for Legged Robot Terrain-adaptive Locomotion