Bug 1054904 - Do not wait for foreground app to paint before starting un...

...lock