[PATCH openEuler-5.10 24/59] bcache: fix NULL pointer reference in cached_dev_detach_finish