e-hal: Force reset of shm_table if it is corrupted

Force reset of shm_table on init if we detect that it is corrupted.
Since .shared_dram==shm_table with current and previous linker scripts all
programs that puts data in the shared_dram section will corrupt the table.