Don't ignore path resolution errors when cleaning ".." from paths.

The clean_dotdots_from_path() function was ignoring path resolution
errors when calling sb_path_resolution() function.
The reason for that was that clean_dotdots_from_path() function
was returning void and had no way to report failure to the caller.

This change makes clean_dotdots_from_path() return int to report errors.
Zero result means that there was no error.
Otherwise, errno code is returned.

All calling functions were modified to use this error code
and report errors to their respective callers.

Signed-off-by: Oleg Girko <oleg.girko@jolla.com>