Fix bug in target memory trying to lock on to missing targets

(switch to weakrefs necessitates check that target is still in conventional space and not retained for other reasons)