Call unsafe_clear() from ~stack().