I believe the US military was worried about a German or Japanese strike on the Panama canal in WW2. And the Suez Canal was literally blocked by scuttling ships when Egypt took control in the Suez crisis.
Destroying or blocking as few as three locks could semi-permanently block all traffic in Panama, or worse, drain Gatun.