Fixes inconsistency when using Queue with sync driver.

| Q                   | A
| ----------------- | ---
| Bug fix?          | yes
| New feature?  | no
| BC breaks?     | yes (Break people code that use sync driver wrongly).
| Deprecations? | no
| Tests pass?     | yes
| Fixed tickets    | #3951
| License           | MIT
| Doc PR           | No changes needed.

Fixed #3951