changed locking in AsyncCommandManager.cs which developed a bad habit after the recent optimizations