Solution is to disable MIUI optimizations. Follow below steps to achieve the same -
- Enable developer mode. Go to settings -> About Phone -> All specs -> tap on MIUI version 5+ times. This will enable developer mode.
- Go to Settings -> Additional Settings -> Developer options -> almost at bottom -> Disable MIUI optimizations.
- Or search MIUI in settings. It will show the entry from there.
Its recommended to enable OEM unlocking option because it comes critically helpful to recover device. Example forgetting lock pattern, pin, password, upgrade/downgrade or manually update rom etc.