On SGS2 MIUI 2.8.24, the PIN coded screen lock is not working. Flashed with full wipe, booted, went to setting and set the PIN code to unlock... First time screen got locked, entered the code but it's not accepted. New fresh installion round and same thing. Only solution was to roll back on previous nandroid backup.