[PATCH 6.1 520/591] dm ioctl: Avoid double-fetch of version