Solution to: Waiting for another flutter command to release the startup lock…
This happens when a flutter api related task is half done and finishes prematurely. On a Mac, this should solve the problem
killall -9 dart
This worked for me on Mac.
On Windows, you can try the following
taskkill /F /IM dart.exe
This should work irrespective of the IDE or editor being opened on closed.