Fix misuse of scratchspace for sign_open.