syscalls/madvise06: Fix cleanup()

If there not enough system RAM/swap the test produced warnings in
cleanup:

...
madvise06.c:71: CONF: System RAM is too small, skip test
safe_file_ops.c:283: WARN: Failed to open FILE 'memory/tasks' for writing at madvise06.c:96: ENOENT
safe_macros.c:184: WARN: madvise06.c:97: rmdir(memory/madvise06) failed: ENOENT
safe_macros.c:724: WARN: madvise06.c:98: umount(memory) failed: ENOENT

Which is because we attempted to umount and remove memory cgroup that
wasn't mounted at all. Now attempt the cleanup only if the directory
exitsts and if it's mounted (the tasks file exists).

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
1 file changed