[No review required] Exclude thread cleanup function from coverage