Add unmounted function to the mount state.

Add the ability to unmount a directory from the filesystem.
Merge pull request #6482 from jesusaurus/feature/unmount

Add unmounted function to the mount state.