[FIX] XQuery Module: check memory limit on sub process