api_v3: consistency: always use unsigned int for flags