NXP-10862: improve script to skip jBPM tables
NXP-12584: make isCheckedOut, lifecycle and lock info available for detached document