lcov: Fix warning when specifying --rc

Current Perl versions report the following warning when using the --rc
option of lcov:

  lcov: Use of each() on hash after insertion without resetting hash
  iterator results in undefined behavior

Fix this warning by not modifying the hash variable that is being
iterated on. Also add the missing whitespace fix-up of --rc parameters
to genhtml.

Reported-by: Maarten Hoes <hoes.maarten@gmail.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>