parlib: Move the provisioning of cores to a PID