Hey there...
Appium now provides the functinality by which you can unlock any kinds of lock using the capabilities.
In latest version of Appium (1.6.4), you need to set 2 capabilities which are as follows:
{
"unlockType": "pin",
"unlockKey": "1111"
}
unlockType: ['pin', 'password', 'pattern', 'fingerprint']
Refer the attached Readme file here.
Thanks!
-Mashkur