Fix a race with the clearing of p->p_session->s_ttyvp. NULL the pointer