MDL-48448 dml: Trigger a debugging() message when repeating a db query

Also showing the number of repeated queries
along with other MDL_PERF data.