[PATCH 6.0 252/314] dm ioctl: fix misbehavior if list_versions races with module loading