[PATCH 6.16 115/457] kasan/test: fix protection against compiler elision