@nogc for builtin functions

Needed for https://github.com/D-Programming-Language/dmd/pull/3490.

Also needs https://github.com/D-Programming-Language/druntime/pull/773