Adapt TOTP replay detection to use new liboath API

See https://github.com/Fabian-Gruenbichler/oath-toolkit/tree/expand-totp-api