verify: slightly rework tally checks
verify: slightly rework tally checks

pycodestyle objects to assigning lambdas to a variable, but the
suggested fix is worse than the cure: one-liner defines.

Instead, let's rework the way we handle tally vs. faillock by defining a
boolean at the top and conditionalising everything based on that.

cockpit-project/cockpit,martinpitt/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,martinpitt/cockpit,garrett/cockpit,mvollmer/cockpit,martinpitt/cockpit,martinpitt/cockpit,martinpitt/cockpit,garrett/cockpit,garrett/cockpit,cockpit-project/cockpit,mvollmer/cockpit,mvollmer/cockpit,mvollmer/cockpit,cockpit-project/cockpit,garrett/cockpit,garrett/cockpit,mvollmer/cockpit