[PATCH v17 17/24] selftests/vm/pkeys: Improve checks to determine pkey support