Linux: Check for debugger present via /proc/self/status

Rather than threads/ptrace, which caused hang.