Mark `std.stdio.testFilename` as `@safe` and `pure`

It does not use unsafe operations and does not touch global states.
It will help us to make unittests in std.stdio `@safe` and `pure`.