nbr-table: add table purge method

Getting the next item after removal seems unsafe. I'd suggest to get the next, remove the current, and only then jump to the next. I'm guessing the current code works because `remove` simply unsets the `used` bit for the current table, and actual removal will only happen in future insertions -- but future changes in the `nbr_table` implementation could easily break this purge function.