selftests/powerpc: Move pkey helpers to headers