Britain’s railways have always had a complicated relationship with the ground beneath them. The soaring temperatures of late May brought familiar disruption. Speed restrictions and…