Add `override` where it is missing, in invrequest.cpp
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/16710 | core#16710]] [2/2]
https://github.com/bitcoin/bitcoin/pull/16710/commits/839add193b13c17a40f42ff69d973caeb800d3f2
Depends on D10209