greeter:fix bug of lock->switchtogreeter-->and login will dies