fix(util/lean_path): warnings produced by Valgrind

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(util/lean_path): warnings produced by Valgrind