fix(ngModel): minimize jank when toggling CSS classes during validation

Previously, class toggling would always occur immediately. This causes problems
in cases where class changes happen super frequently, and can result in flickering
in some browsers which do not handle this jank well.

Closes #8234