Fix remaining GDBserver issues with !HAVE_THREAD_DB_H.