rpc, logging: return "verificationprogress" of 1 when up to date
getblockchaininfo
never reaches 1.0 as reported in issue https://github.com/bitcoin/bitcoin/issues/31127.
This PR is based on the reviews given on https://github.com/bitcoin/bitcoin/pull/31135.