Mark unittests for std.stdio.File.error, detach and flush as safe

They do not contain any unsafe operations.