[PATCH 6.12 220/590] selftests/landlock: Fix build with non-default pthread linking