Higher gasoline prices are prompting companies to rethink how they attract and retain hourly and gig workers.