libcli: Call dbwrap_local_open with the correct tdb flags