alaamin Hello,
If device still lock after doing patch, you can dissabled it via adb mode.
First, flash device with persist from stock rom, after device fully boot, go to setting, developer option and enable ADB Debuging
Go to ADB tab in UFi Android ToolBox, go to Special Task, Disable Micloud from there.