[ASan] Move malloc stats collection away from AsanThreadRegistry class.