Fix thread safety issue parsing JPaths:

https://issues.scala-lang.org/browse/SI-4929