[LTO] Extend CAS build workaround to LTO (#20814)
Shared library build fails with the same error Jinsong saw and fixed in
https://github.com/intel/llvm/commit/e676cb09f0b23ec572fefe09aa7882876797eb79
as part of the pulldown. This was missed because we don't run the
nightly as part of the pulldown CI, and we only do a shared library
build in the nightly.
Fix confirmed in
https://github.com/intel/llvm/actions/runs/19906696122/job/57064646962
Closes: https://github.com/intel/llvm/issues/20743
Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>