FOLLOW THESE STEPS:
1) Connect your Android phone/Tablet to your Computer.
2) Open Command Prompt as administrator.
3) Now in Command Prompt Paste the following code carefully & Then Press Enter..
adb shell
cd /data/data/com.android.providers.settings/databases
sqlite3 settings.db
update system set value=0 where name='lock_pattern_autolock';
update system set value=0 where name='lockscreen.lockedoutpermanently';
.quit
4) Now You Will Some Screen as shown below and And then
You Can reboot your phone & when your will be start again then try Unblocking Your phone Using any Random lock Pattern And it will work .
5) If You Face Any Problem Repeat Same Step But instead of the above code try using adb shell rm/data/system/gesture.key & press Enter now you try rebooting you device to see if its works.