memcgroup: fix hang with shmem/tmpfs