[ASan] turn on leak checking for ASan tests and fix a few discovered leaks