Fix deadlock loading node from the command line (#30561)

Before this change the the load env task never completed, leading to the
node runtime lock being held permanently.

Release Notes:

- N/A
196586e352Conrad Irwin committed on 5/12/2025, 12:50:25 PM· committed by GitHubparenta1d8e50
1 file changedLine totals unavailable