qa/standalone: add polling for PG log trimming in osd-backfill-recovery-log
Add a 30-second polling loop after flush_pg_stats to wait for PG log
and duplicate entries to be trimmed to their expected sizes before
validation. This addresses timing issues where the test was inspecting
the objectstore before log trimming operations completed.
The loop polls 'ceph pg query' to check both log and dups lengths,
breaking when both reach or fall below expected thresholds. This
prevents spurious test failures on varied teuthology machines where log
trimming happens at different speed after recovery completes.
Solves intermittent failures where logs showed 50 entries instead of
expected 2, and dups showed 7 instead of expected 8.