[PATCH 6.14 406/449] landlock: Move code to ease future backports