dm cache: fix missing ERR_PTR returns and handling