Avoid find_thread_ptid with null_ptid