Ensure consistent umask during mode tests.