kernel: check that p_ucred is not NULL before calling p_trespass