detached-stash: simplify stash_apply