tdb2: add missing prototype, move tdb_firstkey/tdb_nextkey to traverse.c