DoorDash and other gig apps are adding new tasks that let users photograph store shelves and train AI, moving gig work beyond delivery and rides.