Make QgsExpression parser reentrant. Fixes crashes when expressions are parsed in multiple threads.

Sponsored by a big dose of caffeine.