[RFC PATCH 06/15] selftests/rseq: Introduce thread pointer getters