Remove mutex, and do atomic increment instead.