@nogc for builtin functions

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