[AArch64] Generate .note.gnu.property based on module flags.
Flags of the module derived exclusively from the compiler flag -mbranch-protection.
The note is generated based on the module flags accordingly.
After this change in case of compile unit without function won't have
the .note.gnu.property if the compiler flag is not present .
Reviewed By: chill
Differential Revision: https://reviews.llvm.org/D80791