Use DEVICE_DT_GET to obtain the flash device at compile time. Add readiness check at main. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>