exit: change zap_other_threads() to count sub-threads