Fixed race condition in OperationQueue (fixed #893)