rework enum-flag verification to avoid spurious evaluation of lambdas
With this change, the enum-flags are no longer verified when the flag container is locked. This should fix the problems encountered with !50366 (merged) discussed as ATLASRECTS-6820.
The enums are now verified when the value is assigned either directly or by evaluating the associated auto-config method.