/* * Set in a new process credential, and drop the write lock. The credential * must have a reference already. Optionally, free a no-longer required * credential. The scheduler also needs to inspect p_cred, so we also * briefly acquire the sched state mutex. */