Make queue flushing work with deferred explicit change tracking policy

Persist entity before flush so the change gets saved even when deferred explicit tracking policy policy in use.