selftests/rseq: Introduce thread pointer getters