[backend] Mitigate libgit2 security (umask) issues.