test-lib: add a GIT_TEST_PASSING_SANITIZE_LEAK=check mode