Fix issue #9460, flush buffer before data mover completes