Moved the regex compile into each thread.
Regexec seem to block with the same regex object used from different threads.
This was an unneccessary performance lost.