tdb: fix ecode setting on nonblocking brlock