nommu: fix race between ramfs truncation and shared mmap