ldb:ltdb_filter_attrs - fix a counter variable type