Bugfix/2i refresh mod state

The signature of do_get_term changed with the fix to the memory backend
TTL and memory settings. The 2i rehash command was failing due to an
outdated case statement due to that change.

This was caught by the verify_2i_aae test, which can be used to verify this change.

*NOTE*: When the memory backend fix makes it to 2.0, this change needs to be applied there too.