Fix #7912 by using `CApiFFI` for `<termios.h>` imports

On Android, the functions imported from `<termios.h>` are actually
inlined functions, so we need to wrap them via the `capi` calling
convention.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>