pget(9) in it's current form unconditionally acquire allproc_lock every time.
Test showed that in many cases requested pid == curproc->p_pid allowing this lock to be avoided:
make -j4 buildworld
saved about 5600 locks;
poudriere bulk -J 12 -C -t -j 111amd64 www/nginx-full
where this ports depends on 230 others (java, llvm40, etc..) saved about 27000 locks.