fix problem with `(continuation-marks <thread>)`

A thread can be swapped out while it's in transition between a
mandling of the mark-stack position and recovering from C-stack
overflow. Fix up that case.
fix `expand` on a `module` containing a `#%declare` form