s4/ldb: expose the ldb flags with ldb_get_flags()