not a sandtrap, but the bay platforms at Lancaster have a curious arrangement with an inner spring-loaded pinch rail which would serve the same purpose. Also the railheads have a raised zig-zag pattern on the surface presumably created with welding equipment - I assume to try to scrape sliding wheels?
There was a previous thread on the sandtraps at
https://www.railforums.co.uk/threads/railway-geology.143118/
Mainly discussing this interleaved one on the climb to Bincombe tunnel
(photo comes from this geological study)
Upwey - Ridgway Railway Cuttings - Desciption of Purbeck Formation strata exposed
wessexcoastgeology.soton.ac.uk