[PATCH 3.18 101/121] random: use lockless method of accessing and updating f->reg_idx