Hide the ASG_CHECK macros from cppcheck (we already do the same for the regular CHECK macros). Instead define the macros in the athena library. This fixes some of the cppcheck warnings in !76498.
Also add a test-case in AthenaKernel for the use of CHECK in unscoped if-statements.