making lock on XML file access private

making lock on XML file access private