[PATCH 4.19 243/338] ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl