Implement mkdir.

use a generic function to hanfle fuse_entry_out structures.