struct proc: add locking annotation for p_pendingcnt
(cherry picked from commit 166c1fac59f04cc346d8a18671f25d0ef0293611)