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

Rather than threads, which caused hang.