[PATCH 5.17 007/111] random: make credit_entropy_bits() always safe