Earlier quoted context omitted.
If we're assuming that, say, Kazakhstan is the belligerent then yes. If it's the United States then trains across central Asia are harder to stop and require bombing a third country (unlike a shipping blockade which just requires a threat and which doesnt require pissing off a third party).
Any nation would be hard-pressed to unilaterally close the Strait of Malacca. Pirates might occasionally delay or steal individual shipments, but I doubt even Malaysia and Indonesia could close it down together, if by some miracle they could agree to do so. Egypt would have a better chance closing Suez, but that's one of their few remaining sources of foreign cash so it would really hurt. If for some reason USA wante…
The US could certainly make a few payments to a poor dictator in Central Asia to stop a train unless, of course, that country was reliant upon that train for the flow of critical goods, in which case it would take more than a few payments.