[PATCH 5.4 348/475] ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl