Fix defragmentation bug when getting memory.

p=getmem(16)
relmem(p)
p=getmem(17)

would cause getmem to deadlock.

Apparently, my terminating condition for the defragmentation loop was not set
correctly.