Fix a bug in xsession, postpone locking screen functionality