Handle offset on update_all.

Handle the `offset` on `update_all`.

Note that it will not work for MySQL, because it does not support the offset clause and subselect (which is the approach for the other adapters) on update.

Fixes #10849.

Dependent on this PR on Arel: https://github.com/rails/arel/pull/262.