fix Issue 12334 - Cannot access frame pointer of nested class from inside lambda