[ASan] Move GetMacosVersion() to sanitizer_common.