add more synchronization to handle case where Pellet is making itself an
ontology change listener for the OWLOntologyManager, which may not be
threadsafe in all cases