[PATCH 5.4 129/156] dm ioctl: fix misbehavior if list_versions races with module loading