Merge pull request #3775 from 9rnsr/fix13113

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