Add missing const to getVersion function of ObjCAvailabilityCheckExpr class.
This feels like a bug on the original change D22171. We cannot really call this function from a const object pointer because the function is not marked as const.
This diff adds the missing const specifier to fix the issue.