[libunwind] Add SME detection for Apple platforms (#193630) Copy SME detection sysctl code from ZA test. Also fix a logic issue in the original code while being reviewed. NOKEYCHECK=True GitOrigin-RevId: 94b475dae69cecf8f80a0936a7510be1c6fdbead