[DEL] XQuery/Core: Lock downgrading removed (to be added again)
[MOD] Merging with master