Prior to commit 246d7e9fc239, we would return a special error number
from these system calls when invoked from a jail. Userspace handles
this specially, so we can't really change it. Add a small translation
layer to restore the old behaviour.
PR: 289645
Fixes: 246d7e9fc239 ("jail: Optionally allow audit session state to be configured in a jail")