Remove lto_codegen_set_attr.

It was never exported, so no functionality change.