mask-mode: fix session/resume when using -min-length and fork.