Add GCOV_EXCL_LINE to the two AssertOn*Thread macros.

This will hopefully stop them showing up as missed lines in the coverage
reports.
Fix doccomments, and add a name to a parameter.