Fixes #16840.
EDIT: some context from the issue: estimatesmartfee
will return bad (outdated) fee estimation if ran in blocksonly
mode. Seems better for it to fail instead of succeeding with potentially harmful (in the case of a lightning penalty tx for example) values.