zotonic-tpl-mode: optimize font-lock regexp.

For unclosed tpl tags, the regexp got exponential processing time searching for the closing %},
so with ~10 lines to process, it would take more than minutes to complete.
(cherry picked from commit 362ce1c59351b7e8524cbbd754baacf202822446)