fix Issue 11220 - XXX__lambda2 cannot access frame of function XXX