pub unsafe extern "C" fn PL_unify_thread_id(
    t: term_t,
    i: c_int
) -> c_int