asan/msan: fix "unused function 'OnExit'" warning