test/lazy-omap-stats: overload get_output() to accept both lvalue and rvalue refs
PR #65014 added std::move() inside the while loop, which required
recreating the command string on each iteration.
Add const std::string& overload that forwards to the existing
std::string&& version, allowing the command to be declared outside
the loop for better efficiency.