fix Issue 13113 - cannot build druntime's gc.d with -debug=INVARIANT, bad @nogc inference?

Bypass attribute check on direct invariant calls.
Merge pull request #3775 from 9rnsr/fix13113

Issue 13113 - cannot build druntime's gc.d with -debug=INVARIANT, bad @nogc inference?