Fix shell unlock screen freezing

The bug is well described in this bug report https://github.com/projecthamster/shell-extension/issues/50