libcli: Call dbwrap_local_open with the correct tdb_flags