git-hooks: store git-env into hooks, so we can use the sandbox storage area, and execute
rcextension pre-commit hooks, to read not yet commit objects in GIT.
locale: use a hacky way to catch the locale set error. We rather "cleanup" the env ourselfs
then make it fatal crash. This could be removed when glibc situation gets stable.