commit bbolt transaction if there is any pending deleting operations

Signed-off-by: Siyuan Zhang <sizhang@google.com>