[PATCH 4.14 193/284] ubi: Fix race condition between ctrl_cdev_ioctl and ubi_cdev_ioctl