dedup multithread code onto the multiprocess code in both impl and unittests
after dedup, no longer need to exclude from coverage checking