Commenting out lockFocus that cause crashes.

I haven't found a solution for it. But commenting out lockFocus at least avoid a systematic crash of some of my projects.