[PATCH 6.1 014/259] dm: fix a race condition in retrieve_deps