random: fix possible sleeping allocation from irq context