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

Avoid logging an ugly and frightening traceback,
plus properly rollback the failed transaction before
continuing.
xrg/openerp-server,xrg/openerp-server