Per-thread variable that keeps the last error number.
Mirrors the libc errno convention: each thread sees its own value, so concurrent MEOS calls from multiple threads do not race on the error status.