flash/nor: improved API of flash_driver.info & fixed buffer overruns