r20947: fixed a bug in the unlock logic in the brlock tdb backend