main/openrc: fix checkpath
- src/rc/checkpath.c: fix typo "synbolic" -> "symbolic".
- src/rc/checkpath.c: replace mkdir() with mkdirat().
- checkpath: remove extra slashes from paths
- checkpath: fix code to walk the directory path
fixes #12736 (closed)
fixes #12736 (closed)