[PATCH openEuler-5.10-LTS 53/66] selftests/rseq: Introduce thread pointer getters