[PATCH 6.13 369/414] landlock: Move code to ease future backports