lcov: fix inreplace warnings

Closes #16963.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>