[PATCH v2 5/7] rseq: selftests: Add non-glibc compatibility fixes