[asan] Do not use lambda in sanitizer lit tests.

We may be building with a very old C++ library.