s3:dbwrap: fix db_rbt_traverse() to return the record count on success