kmsutils: Move pad iteration fuction to utils

Change-Id: I84518c191971b4756a3aca55955db6580b3fb653
kmsutils: Fix dereference of a NULL pointer

Change-Id: Ifdb0c758c77ab21b5679725658b4569533b9323c
agnosticbin: Fix mini object ref warning

Queries must always be answered.

Change-Id: Ida4f0890b0bf0ad4e906909db59d4bedda946de0
kmsagnosticbin3: Use recursive mutex

Change-Id: I41f7b585b1e5b2945325c2c65e017ea3bc9d1ae6
kmsagnosticbin3: Provide caps signal to know if caps are already supported upstream

Change-Id: I0f7074aecbf6f81b667cbf399a0973e4256e1aea