Fix shell unlock screen freezing