Fix usage of inferior_ptid in two thread_alive implementations