Samsung has patented a breakthrough self-healing technology for foldable smartphones, which can report microcracks in the display.