[PATCH 6/9] qapi: Generalize command policy checking