fix segfault on prefixed iterating

use additional return value in hattrie_find() instead of mutating the `flag` field