Set branch protection function attributes
Since LLVM 19, it is necessary to set not only module flags, but also function attributes for branch protection on aarch64. See e15d67cfc2
for the relevant LLVM change.
Fixes https://github.com/rust-lang/rust/issues/127829.