replay: Fix compatibility with tenacity 7.0
Fix callback signatures incompatible with freshly released tenacity 7.0
.
Backward compatibility with tenacity 4.12
(packaged in buster) is preserved,
I executed debian packaging locally to be sure.
Migrated from D5217 (view on Phabricator)