I have the same problem with a encrypted wallet file and mining simultaneously.
When CPU mining was the only option I had no problem mining on an encrypted wallet so maybe something changed between those versions. Just saying if it helps to find the bug.
Yeah that's good input. Still haven't been able to reproduce the problem but I'm working on it. I have a general idea of what the problem is.