SERVINF-395: Fix race condition in XML parsing.