[PATCH 5.4 40/58] selftests/rseq: Introduce thread pointer getters