[bugfix] Prevent concurrency issue in XQueryURLRewrite

Static rewrite actions may be modified by several threads, causing ConcurrentModificationExceptions.