pub fn hookify<'a>(
    f: impl FnMut(HookEnv, &[u8]) -> Vec<Vec<u8>> + Send + Sync + 'a,
) -> BoxedHook<'a> {
    Arc::new(RwLock::new(f))
}
Wrap a function in a smart pointer so it may be placed in a `HookRegistry`.

Note: the Send + Sync requirement may be logically extraneous. Requires further investigation.
crates/core/executor/src/hook.rs