[clang] Fix compile-time regression from variably modified type checks (#244352)
Follow-up to #229697, which caused a compile-time regression even on
code without VLAs.
Check `getCanonicalType()->isVariablyModifiedType()` in the callers
first, and push the context in `sizeof` only for variably modified
types. No functional change intended.