tests/storage/flash_map: Fix erase and flatten test

Fix offset read for verification and comparison of read to
erased value, where type mismatch has been causing fails in
comparisons.

Fixes #74066

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 file changed