Revert "kernel: pid: Fix a race in pid generation that causes pids to be reused immediately"

This reverts commit cb0f899a1ac3fba166221a6e84d0bc4b855d9d26.