core: weak ref shouldn't be upgradeable if target is destroyed
core: weak ref shouldn't be upgradeable if target is destroyed

Signed-off-by: Yuxuan Shui <7f7e1535bcd10fa942d56a3436533af20f33203f@gmail.com>

yshui/deai,yshui/deai,yshui/deai