Fixed possible race condition in short-lived synchrynous commands