Fix pattern-lock UI in certain browsers