[PATCH 5.15 140/181] dm ioctl: fix misbehavior if list_versions races with module loading