[docs] [issue12970] os.wlak() consider some symlinks as dirs instead of non-dirs