exec/ptrace: fix get_dumpable() incorrect tests