Fix crash-on-valid if a lambda-expression appears lexically directly within a
local class inside a template.