cl/440413331: ghost: add a couple enclave helpers
cl/440413331: ghost: add a couple enclave helpers

Used by agent_biff.

Tested: agent_biff handoff

google/ghost-userspace,google/ghost-userspace,google/ghost-userspace,google/ghost-userspace