Brands are freaking out about regulators and tech players clamping down on targeting. Here’s how L’Oréal has found a way around that.