Userspace NAND-flash memory emulator