[RWF] sc-client-db: fix finalization can leave best_number below finalized_number (#12334)