Riolu is not in the SoulSilver Safari Zone. It cannot be caught there in any generation.
To get Riolu in SoulSilver:
Riolu was first obtainable in the wild in Pokémon Black 2/White 2 (Hidden Grotto).