* keep async timeout task * add missing pthread to cmake * add tests * Add a sleep period to avoid flushing the tracker.