at24: fix memory corruption race condition
JIRA: https://issues.redhat.com/browse/RHEL-37020
CVE: CVE-2024-35848
If the eeprom is not accessible, an nvmem device will be registered, the
read will fail, and the device will be torn down. If another driver
accesses the nvmem device after the teardown, it will reference
invalid memory.
Signed-off-by: Mark Salter msalter@redhat.com