[FIX] res_users: improve behavior when user record is locked during login