On a relationship between processor-sharing queues and Crump–Mode–Jagers branching processes