[gfxstream] Add dispatcher validity checks

Add conditioning before making driver calls to be
able to workaround some of the fatal errors, such
as unboxing issues during or after snapshot load.
This enables invalidating a host dispatcher based
on the application state. A default error will be
returned for vulkan calls.

Builtin expectation function is used to reduce
performance cost of the checks.

Bug: 383272733
Change-Id: I63211ae27101ef20950ffb9f9a3b9b3b9651900c
3 files changed