refs: check the ref's old value when deleting Recognize when the reference has changed since we loaded it.