random: fix locking dependency with the tasklist_lock