I have a temporary fix for anyone who is still having this issue. Haven't tried the other fix because I'm planning on getting an upgrade soon and it doesn't happen often but here's the workaround:
When keyboard is stuck on lock screen blocking your pattern:
1. Swipe from the top down to open...