[PATCH v5 30/35] qom: add method for getting the "id" of a QOM object