[REG2.063] Issue 9834 - incorrect detection of lambda locality.

http://d.puremagic.com/issues/show_bug.cgi?id=9834