Time-changed birth processes, random thinning, and correlated default risk