Made XPathFactoryPool thread safe