src/darwin: cleanup threads