server: fix lock/unlocking semantics when getting target database
server: fix lock/unlocking semantics when getting target database

Signed-off-by: Flavio Fernandes <e735664e465604dc4cfc5dff971a36a4d5ef0f19@redhat.com>

socketplane/libovsdb