stackcache: Fix computation of memTop for sspill.