[openEuler-22.09 24/34] bcache: fix NULL pointer reference in cached_dev_detach_finish