cryptodev: add API to get/set event metadata