Move -Z lto to -C lto.

Closes #12443