i386: store errno value before using __set_errno()