The method 2 seemlessly handles situations where a component in the path is renamed.
It also denies anyone from unmounting the directory while it's being searched; the kernel will refuse to unmount the directory if it's in use, which includes being the cwd of some process.