[PATCH 5.10 111/149] dm ioctl: fix misbehavior if list_versions races with module loading