I'm much more worried about something like this in a check-in bag, where the fire can spread uncontrollably. At least in cabin you will notice the fire early and can use the fire extinguisher.
Fire inside the hold is another matter entirely, but there are fire suppression systems fitted into all planes nowadays.