[MIN] XQuery: optimization info added for TCE rewritings
[MOD] Core: GLOBALLOCK=true (too many surprised when using RESTXQ)