kernel - make nrandom helper thread mpsafe