[runtime] Fix #24605 "counters not enabled" message in monodis and peverify