Don't assert/crash on reference variables in lambdas bound to a
static local variable from the parent scope.  PR14773.