[PATCH v18 12/24] selftests/vm/pkeys: Introduce generic pkey abstractions