audit: clean up AUDIT_GET/SET local variables and future-proof API