Correct buffer donation of Optimizer._step.
Correct buffer donation of Optimizer._step.

Buffers can only be donated if they match the shape and type of the output,
which is not true for the rng state or the batch item.

PiperOrigin-RevId: 451356262

deepmind/kfac-jax,deepmind/kfac-jax