tdb2: fix bucket search