NXP-10777: quota updates must not checkOut documents, fix version count (cherry-pick from 5.6, tests not yet fixed)
NXP-10777: fix quota updates for versions