kern_ptrace: change type of proctree_locked to bool
(cherry picked from commit 2bd0506c8d94a2c581dd16407f3a1c159a38769b)