Fixes #4646: Add inventory-upgrade script, add property waiting.inventory.queue.size