[comboot] Fix reference counting on replacement images