AllocOpt: Handle objref with no preserve_end in a single block. (#50277)
This fixes the AllocOpt pass when there is a single block and no
gc_preserve_end. The dominator tree traversal now considers the starting
(gc_preverse_begin) block as well and does not introduce a lifetime end
when there is no gc_preserve_end for the objref.