xmlfactory: Add remote parameter for the parser, protect with mutex