fixed a race in ramfs