Android lock screen bug after system files deleted
If you have access to the /data/system folder you should delete

password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal

all of them who existing.