After ensuring a directory, check that it's there
When we try to create a directory for user data in the session version
of the daemon, if we fail to do so, exit with an error status instead of
zero, and if we succeed, do a second stat() to double-check, and perhaps
make static analysis tooling happy.