create_main: improve path handling

Support longer paths than one directory - i.e. if
/sys/fs/cgroup/memory/a exists, then allow a create request for
b/c/d/e to create /sys/fs/cgroup/memory/a/b/c/d/e.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>