fix build error in LocalFs::doCreate and InMemory::doCreate