[lsan] Invoke leak detection with atexit().

Keeps it consistent between ASan and LSan.