[asan] print thread number while reporting invalid-free and double-free; add tests; also add a test for use-after-poison