XWikiURLFactory is not thread safe and sharing different ones among many thread can generate various race conditions.