Move -Z lto to -C lto.

Closes #12443
auto merge of #17421 : anchovieshat/rust/move_lto, r=thestinger

Closes #12443