I guess you restored the contacts from the MIUI backup and from gmail account. Try Contacts->Settings->Remove duplicates. Of course, make a backup first.
It seems to be the ~80ma current drain when I use custom (new) lockscreen in 1.6.17 (HTC HD2). I tried to wipe partitions, and all worked perfect until I didn't activate custom lockscreen.