p_candebug(), p_cansee(): always allow for curproc
(cherry picked from commit 55a0aa21628ad7b3bd8d6a42e51d79867d8996a9)