feat(mem_wal): observe flush latency through the metrics facade (#8625)